package com.bootdo.zk.service;

import org.apache.zookeeper.CreateMode;

public class Main {
    public static void main(String[] args) throws Exception {
        ZKService zk  = new ZKService("127.0.0.1:2181", 6000000);
        final String heh = zk.createNode("/heh", "fangkkkk".getBytes(), CreateMode.PERSISTENT);
        System.out.println(heh);
        Thread.sleep(20000);
    }
}
